﻿// --------------------------------------------------------------------------------------
// <copyright file="lien_heController.cs" company="NGroup">
// Copyright (c) NGroup. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------
// <history>
//     <change who="Bui Thanh Nam" date="2014.01.05">Create</change>
// </history>
// --------------------------------------------------------------------------------------

namespace NGroup.VTL.Web.Controllers
{
    using System.Web.Mvc;
    using NGroup.VTL.Service;
    using NGroup.VTL.Service.Abstraction;

    public class lien_heController : ContentBaseController
    {
        #region Constructor

        private IRetrieveContentService _retrieveContentService;

        public lien_heController()
        {
            _retrieveContentService = new RetrieveContentService();
        }

        public lien_heController(IRetrieveContentService retrieveContentService)
        {
            _retrieveContentService = retrieveContentService;
        }

        #endregion

        public ActionResult chi_tiet()
        {
            string uniqueString = "lien-he";
            var model = _retrieveContentService.GetNewsDetail(uniqueString, CurrentLanguage);
            ViewBag.UniqueString = model.Title;
            ViewBag.MetaKeyword = model.MetaContent;
            ViewBag.MetaDescription = model.MetaDescription;
            return View(model);
        }
    }
}
